﻿using AspNetCore.MyCrawler.Model;
using AspNetCore.MyCrawler.Utility;
using System;

namespace AspNetCore.MyCrawler
{
    class Program
    {
        static void Main(string[] args)
        {
            try
            { 
                TencentCategoryEntity category = new TencentCategoryEntity()
                {
                    Url = "https://ke.qq.com/course/list/%E6%9C%9D%E5%A4%95%E6%95%99%E8%82%B2?price_min=1&tuin=a3ff93bc"
                    //Url = "https://ke.qq.com/course/list/.Net?tuin=a3ff93bc" 
                };

                #region 抓取课程
                #region 第一次课
                {
                    //ISearch search = new CourseSearch(category);
                    //search.Crawler();
                }
                #endregion

                #region 第二次课
                #region 抓取腾讯课堂类别数据 
                {
                    //ISearch search = new CategorySearch();
                    //search.Crawler();
                }
                #endregion


                #region 开始抓取数据 
                {
                    CrawlerCenter.Handler();
                }
                #endregion

                #endregion
                #endregion

                Console.ReadLine();
            }
            catch (Exception ex)
            {
                Console.WriteLine(ex.Message);
            }

        }
    }
}
